Documentation Index
Fetch the complete documentation index at: https://docs.buildbetter.ai/llms.txt
Use this file to discover all available pages before exploring further.
bb — the BuildBetter CLI
Once installed, everything BuildBetter does on your machine runs through a single binary: bb. It’s small, scriptable, and stays out of your way until you call it.
Day-to-day commands
These are the commands you’ll actually type. The rest are below.| Command | What it does |
|---|---|
bb agent-sessions resume | Pick a coding session to resume — yours or a teammate’s |
bb agent-sessions list | Show sessions for the current branch / repo |
bb skills install <pack> | Add a skill pack to your agent |
bb doctor | Diagnose install, PATH, and agent integration issues |
bb login | Sign in to sync sessions across machines |
Sessions
The CLI tracks every session you have with a supported coding agent (Claude Code, Codex, Cursor, etc.) and indexes it by repo · branch · commit · author. See the [Agent Sessions](/pages/BuildBetter SH/agent-sessions) page for the full story; here’s the command surface.Skills
Skills are slash commands like/bb-specify and /trust-but-verify that get installed into your coding agent. They’re shipped as packs — see the [Skills reference](/pages/BuildBetter SH/skills) for what each one does.
Account & sync
bb login is optional. Without it, sessions stay on disk and only resume on the same machine.
Diagnostics & maintenance
bb doctor is the first thing to run when something feels off. Sample output:
Repo configuration
bb stores per-repo settings in .buildbetter/ at the repo root (it’s safe to commit). Use these to opt repos into different defaults — for example, a repo where sessions should never sync to the cloud.
| Key | Effect |
|---|---|
sync.enabled | false keeps all sessions for this repo local-only |
sessions.exclude_branches | Glob list of branches that should never be indexed (e.g. secret/*) |
pr.auto_link | false disables automatic session-to-PR linking |
Where things live
| Path | What’s there |
|---|---|
~/.buildbetter/bin/bb | The binary itself |
~/.buildbetter/skills/ | Installed skill packs (synced to your agent’s skills dir) |
~/.buildbetter/sessions/ | Local session cache (offline + pre-sync) |
~/.buildbetter/config.toml | Global config and credentials |
~/.buildbetter/logs/bb.log | CLI logs — attach this to bug reports |
<repo>/.buildbetter/ | Per-repo overrides (safe to commit) |
Scripting bb
Most commands support --json for machine-readable output, which makes bb easy to wire into pre-commit hooks, PR templates, or CI:
0 success, 1 user error, 2 not signed in, 3 network failure, 4 integrity / corrupted state.
Next steps
Sessions deep dive
What’s in a session, where it’s stored, how resume actually works
Skills
The slash commands that ship in each pack